GBML manual / Constants

BTN_A

The GBA’s A button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_A: constant

Description

Names the GBA's A button, for passing to btn_held, btn_pressed or btn_released - the primary face button - fires the active weapon by default, or the equipped skill/action button depending on a project's own button settings.

Example

if (btn_pressed(BTN_A)) {
    var fired = true;
}

Checks for a fresh press of A this frame.

See also: btn_heldbtn_pressedbtn_released